<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="Cache-Control" content="No-Cache">
	<meta http-equiv="Pragma" content="No-Cache">

	<title>운세의 신</title>
</head>

<body>
<?
	// 3.디비와 연결
	$connect = mysql_connect("localhost", "root", "123zxc") or die(mysql_error());

	// 4.데이터베이스 선택
	mysql_select_db("unsin") or die(mysql_error());
	
	// 5.쿼리문 작성
	$query = "select * from F022";
	
	// 6.쿼리문 적용하여 $result 에 대입
	$result = mysql_query($query, $connect);
	
	while($data = mysql_fetch_array($result)){
?>
		<?=$data['DB_num'];?>,<?=$data['DB_data'];?>
<?
	}
	// 11.디비 닫기
	mysql_close($connect);
?>
<a href="http://www.etrade.co.kr/download/xingQ_Install.exe">dsfsadf</a>
</body>
</html>